package com.wangyg.flourfactory.outer;

import feign.hystrix.FallbackFactory;

/**
 * Created by wangyg6 on 2019/5/21 21:31.
 * 具体是返回create中的实现类，用两种方法实现，一个内部类，一个是创建好的bean。此处方式一
 */
public class DefaultFallbackFactory implements FallbackFactory<ICallBreadStore> {

	@Override
	public ICallBreadStore create(Throwable cause) {
		return new ICallBreadStore() {

			@Override
			public String getHystrixMsg() {
				return "内部类获取，方式一";
			}
		};
	}
}
